package com.itheima.practice;
/**
 * @ProjectName: ybxy6
 * @Titile: Person
 * @Author: 鲁伍加
 * @Description: TODO
 */
public class Person {
    private String name;
    private double chinese;
    private double math;
    private double english;
    public String getName() {return this.name;}
    public double getChinese() {return this.chinese;}
    public double getMath() {return this.math;}
    public double getEnglish() {return this.english;}
    public void setName(String name) {this.name = name;}
    public void setChinese(double chinese) {this.chinese = chinese;}
    public void setMath(double math) {this.math = math;}
    public void setEnglish(double english) {this.english = english;}
    public boolean equals(Object o) {
        if (o == this){//47
            return true;
        }else if (!(o instanceof Person)){
            return false;
        }else {
            Person other = (Person) o;
            if (!other.canEqual(this)){
                return false;
            }else if (Double.compare(this.getChinese(), other.getChinese())!=0){
                return false;//56
            }else if(Double.compare(this.getMath(), other.getMath())!=0){
                return false;
            } else if (Double.compare(this.getEnglish(),other.getEnglish())!=0) {
                return false;
            }else{//61
                Object this$name = this.getName();
                Object other$name = other.getName();
                if (this$name == null){
                    if (other$name != null){
                        return false;//66
                    }
                } else if (!this$name.equals(other$name)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {return other instanceof Person;}

    public int hashCode() {
        boolean PRIME = true;//int PRIME = true;
        int result = 1;
        long $chinese = Double.doubleToLongBits(this.getChinese());
        result = result * 59 + (int) ($chinese >>> 32 ^ $chinese);
        long $math = Double.doubleToLongBits(this.getMath());
        result = result * 59 + (int) ($math >>> 32 ^ $math);
        long $english = Double.doubleToLongBits(this.getEnglish());
        result = result * 59 + (int) ($english >>> 32 ^ $english);
        Object $name = this.getName();
        result = result * 59 + ($name == null ? 43 : $name.hashCode());
        return result;

    }
    public String toString() {
        String var10000 = this.getName();
        return "Person(name=" + var10000 + ", chinese=" + this.getChinese() + ", math=" + this.getMath() + ", english=" + this.getEnglish() + ")";
    }
    public Person(String name, double chinese, double math, double english) {
        this.name = name;
        this.chinese = chinese;
        this.math = math;
        this.english = english;
    }
    public Person() {
    }

}
